//
//  webViewVC.m
//  Notification
//
//  Created by Apple on 2017/3/22.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "webViewVC.h"

@interface webViewVC ()

@end

@implementation webViewVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"WebViewVC";
    self.view.backgroundColor = [UIColor whiteColor];
    self.web = [[UIWebView alloc]initWithFrame:self.view.frame];
    self.web.scalesPageToFit = YES;
    [self.view addSubview:self.web];
    
    NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.baidu.com"]];
    [self.web loadRequest:request];
#pragma mark-加载本地h5文件
    NSString * fi = [[NSBundle mainBundle]pathForResource:@"表单" ofType:@"html"];
    NSString * file = [NSString stringWithContentsOfFile:fi encoding:NSUTF8StringEncoding error:nil];
    [self.web loadHTMLString:file baseURL:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
